package com.dream.house.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import cn.com.servyou.base.exception.DAOException;

import com.dream.house.dao.base.IDAO;
import com.dream.house.entity.BuyDTO;

@Repository
public interface BuyDAO extends IDAO{

	boolean saveBuy(BuyDTO dto) throws DAOException;
	
	boolean updateBuy(BuyDTO dto) throws DAOException;
	
	boolean removeBuy(String id) throws DAOException;
	
	BuyDTO getBuy(String id) throws DAOException;
	
	List<BuyDTO> findBuys(BuyDTO dto) throws DAOException;
	
	boolean updateBuyStatus(String id,String status) throws DAOException;
	
	public List<BuyDTO> getBuysByRoom(String room_id) throws DAOException;
}
